VirtualTimeSchedulerBase.AdvanceBy(TRelative) method¶
Defined in
Type: VirtualTimeSchedulerBaseSystem.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public void AdvanceBy(TRelative time)
Summary: Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan.
Parameters
| Name | Type | Description |
|---|---|---|
time | TRelative | Relative time to advance the scheduler's clock by. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | time is negative. |
| System.InvalidOperationException | The scheduler is already running. VirtualTimeScheduler doesn't support running nested work dispatch loops. To simulate time slippage while running work on the scheduler, use [Sleep](# |